<extend name="Common/layout"/>
<block name="head_add">
    <script src="__STATIC__/plugin/uploadify/jquery.uploadify.js"></script>

    <script src="__STATIC__/plugin/yeditor/js/yeditor.js"></script>
    <link rel="stylesheet" href="__STATIC__/plugin/yeditor/css/yeditor.css">


</block>
<block name="body">
    <style>
        #goods-url{
            display:none;
        }
        #goods-url:hover{
            display:block;
        }
        .btn-copy:hover + #goods-url{
            display: block;
        }
    </style>
    <div class="panel">
        <div class="panel-heading">
            编辑商品

            <button type="submit" class="btn btn-default" style="position: fixed;top: 100px;    left: 220px;" data-url="{:U('Goods/index')}">返回</button>
            <script>
                $(".btn-copy").on("click",function(){
                    var url = $("#goods-url").val();
                    $("#goods-url").select();
                    console.log(url);
                    if(window.clipboardData)
                        window.clipboardData.setData(url);
                    else
                        document.execCommand("Copy");
                    console.log("复制到剪贴板");
                });
            </script>
        </div>
        <div class="panel-body">
            <include file="Goods/form"/>
        </div>
    </div>
</block>